package de.mpii.html.table;

import java.util.ArrayList;
import java.util.List;

public class Row {

	private final Table table;

	private final List<String> values = new ArrayList<String>();

	public Row(Table table) {
		this.table = table;
	}

	public void add(String value) {
		values.add(value);
	}

	@Override
	public String toString() {
		StringBuilder sbuilder = new StringBuilder();

		for (String value : values)
			sbuilder.append('[' + value + "],");

		return sbuilder.toString();
	}
}
